package com.ruoyi.app.controller.marketing.service.impl;

import com.ruoyi.app.controller.marketing.mapper.ICouponMapper;
import com.ruoyi.app.controller.marketing.service.ICouponService;
import com.ruoyi.app.controller.member.mapper.IMemberCouponMapper;
import com.ruoyi.common.entity.DO.marketing.CouponDO;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class CouponServiceImpl implements ICouponService {

    @Resource
    private ICouponMapper couponMapper;

    @Resource
    private IMemberCouponMapper IMemberCouponMapper;

    @Resource
    private RedisTemplate redisTemplate;

    @Override
    public CouponDO getDetail(long couponId) {
        return couponMapper.selectByPrimaryKey(couponId);
    }

}
